﻿@page
@model My.ToDoListTiered.Web.Pages.IndexModel
@using Microsoft.AspNetCore.Mvc.Localization
@using My.ToDoListTiered.Localization
@using Volo.Abp.Users
@inject IHtmlLocalizer<ToDoListTieredResource> L
@inject ICurrentUser CurrentUser
@section styles {
<abp-style src="/Pages/Index.css" />
}
@section scripts {
<abp-script src="/Pages/Index.js" />
}
<div class="container">
    <div class="p-5 text-center">
        <div class="d-inline-block bg-success text-white p-1 h5 rounded mb-4 " role="alert">
            <h5 class="m-1"> <i class="fas fa-rocket"></i> Congratulations, <strong>ToDoListTiered</strong> is successfully running!</h5>
        </div>
        <h1>Welcome to the Application</h1>

        <p class="lead px-lg-5 mx-lg-5">@L["LongWelcomeMessage"]</p>

        @if (!CurrentUser.IsAuthenticated)
        {
            <p>说明没有登录 @CurrentUser.IsAuthenticated</p>
            <a abp-button="Primary" href="~/Account/Login"><i class="fa fa-sign-in"></i> @L["Login"]</a>
        }
        else
        {
            <p>说明已经登录</p>

        }

    </div>
   
</div>
